.PHONY: all clean

all: tp2.pdf
clean:
	rm -f tp2.pdf tp2.log tp2.toc tp2.aux tp2.idx tp2.out

tp2.pdf: main.tex dicctrie.tex arbolcategorias.tex linklinkit.tex *.sty
	pdflatex -jobname tp2 main.tex
	while grep -qi 'rerun' tp2.log; do pdflatex -jobname tp2 main.tex; done
